package com.java.jvm.loader;

import java.util.concurrent.TimeUnit;

public class ObjectClassLoaderTests {//extends Object
    public static void main(String[] args) throws ClassNotFoundException, InterruptedException {

       // ClassLoader classLoader = Object.class.getClassLoader();
       // System.out.println(classLoader);

        ClassLoader appClassLoader = ClassLoader.getSystemClassLoader();//AppClassLoader
        Class<?> aClass = appClassLoader.loadClass("java.lang.Object");//此类不会被重复加载
        ClassLoader classLoader = aClass.getClassLoader();
        System.out.println(classLoader);//null

        TimeUnit.MINUTES.sleep(5);
    }
}
//java中的类有哪些？
//java自带基础类库  BootStrapClassLoader
//java自带的扩展类库 ExtClassLoader
//我们自己写的类 AppClassLoader
//第三方框架的类 ....
